import request from '@/utils/request'

// 查询轮播图
export function fetchList(query) {
  return request({
    url: '/slide/selectAll',
    method: 'get',
    params: query
  })
}

export function updateLunbo(data) {
  return request({
    url: '/slide/modify',
    method: 'post',
    data
  })
}

// 分页查询电影
export function fetchFilms(query) {
  return request({
    url: '/film/selectPageByQuery',
    method: 'get',
    params: query
  })
}

// 创建新电影
export function createFilm(data) {
  return request({
    url: '/film/add',
    method: 'post',
    data
  })
}

export function updateFilm(data) {
  return request({
    url: '/film/modify',
    method: 'post',
    data
  })
}

export function removeFilm(data) {
  return request({
    url: '/film/remove',
    method: 'post',
    data
  })
}




